#{extends 'CRUD/layout.html' /}
#{set title:messages.get('crud.show.title', type.modelName) /}

<h2>&{'crud.show.title', type.modelName}</h2>

<div id="crudShow" class="${type.name}">

    #{form @delete(object._key())}
        <div class="crudDelete">
            <input type="submit" value="&{'crud.delete', type.modelName}" />
        </div>
    #{/form}
		
    <div class="objectForm">
    #{form action:@save(object._key()), enctype:'multipart/form-data'}
        #{crud.form /}
        <ul class="crudButtons">
            <li><input type="submit" name="_save" value="&{'crud.save', type.modelName}" /></li>
            <li><input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" /></li>
        </ul>
    #{/form}
    </div>

</div>